<include file="Public:header" />
<include file="Public:left" />
<style>
    .add_img .img_case{width: 100px;height: 100px;border:1px solid #000;margin: 0 10px 10px 0;}
    .add_img .img_case img{width: 100%;height:100%;}
    .add_img .img_case:last-child .ld_close{display:none}
    .add_img{display: flex;flex-wrap:wrap;margin: 15px 0 0 125px}
    #param-items tr td{margin-top: 10px;}
</style>
<form action="{:url('Schedule/edit')}" method="post" enctype="multipart/form-data" id="brandForm">
    <section>
        <h2><strong>编辑</strong></h2>
        <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">项目名称：</span>
                <input type="text" name="name" class="textbox textbox_295" value="{$data.name?$data.name:''}">
            </li>
            <li>
                <span class="item_name" style="width:120px;">模块负责人：</span>
                <input type="text" name="username" class="textbox textbox_295" value="{$data.username?$data.username:''}">
            </li>
            <li>
                <span class="item_name" style="width:120px;">签约时间：</span>
                <input type="text" class="textbox textbox_295" name="signtime" id="timea" placeholder="开始时间..." value="{$data.signtime?$data.signtime:''}"/>
            </li>
            <li>
                <span class="item_name" style="width:120px;">到期时间：</span>
                <input type="text" class="textbox textbox_295" name="finishtime" id="timeb" placeholder="到期时间..." value="{$data.finishtime?$data.finishtime:''}"/>
            </li>
            <li>
                <span class="item_name" style="width:120px;">情况描述：</span>
                <script id="editorc" name="describe" type="text" style="width:700px;height:300px;margin-left:125px; margin-top:-12px;">{$data.describe?$data.describe:'';}</script>
            </li>
            <li>
                <span class="item_name" style="width:120px;">进度安排：</span>
                <script id="editora" name="schedule" type="text" style="width:700px;height:300px;margin-left:125px; margin-top:-12px;">{$data.schedule?$data.schedule:''}</script>
            </li>
            <li>
                <span class="item_name" style="width:120px;">项目说明：</span>
                <script id="editorb" name="introduction" type="text" style="width:700px;height:300px;margin-left:125px; margin-top:-12px;">{$data.introduction?$data.introduction:''}</script>
            </li>
            <input type="hidden" name="id" value="{$id?$id:''}">
            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="submit" class="link_btn" value="提交"/>
            </li>
        </ul>
    </section>
</form>
</div>
</section>
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
<script>
   laydate.render({
        elem: '#timea' //指定元素
        ,type:'datetime'
    });
    laydate.render({
        elem: '#timeb' //指定元素
        ,type:'datetime'
    });
</script>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var uea = UE.getEditor('editora');
    function isFocus(e){
        alert(UE.getEditor('editora').isFocus());
        UE.dom.domUtils.preventDefault(e)
    }
    function setblur(e){
        UE.getEditor('editora').blur();
        UE.dom.domUtils.preventDefault(e)
    }
    function insertHtml() {
        var value = prompt('插入html代码', '');
        UE.getEditor('editora').execCommand('insertHtml', value)
    }
    function createEditor() {
        enableBtn();
        UE.getEditor('editora');
    }
</script>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ueb = UE.getEditor('editorb');
    function isFocus(e){
        alert(UE.getEditor('editorb').isFocus());
        UE.dom.domUtils.preventDefault(e)
    }
    function setblur(e){
        UE.getEditor('editorb').blur();
        UE.dom.domUtils.preventDefault(e)
    }
    function insertHtml() {
        var value = prompt('插入html代码', '');
        UE.getEditor('editorb').execCommand('insertHtml', value)
    }
    function createEditor() {
        enableBtn();
        UE.getEditor('editorb');
    }
</script>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ueb = UE.getEditor('editorc');
    function isFocus(e){
        alert(UE.getEditor('editorc').isFocus());
        UE.dom.domUtils.preventDefault(e)
    }
    function setblur(e){
        UE.getEditor('editorc').blur();
        UE.dom.domUtils.preventDefault(e)
    }
    function insertHtml() {
        var value = prompt('插入html代码', '');
        UE.getEditor('editorc').execCommand('insertHtml', value)
    }
    function createEditor() {
        enableBtn();
        UE.getEditor('editorc');
    }
</script>
</body>
</html>
